package com.Super;
//编写一个Student类，继承Person类，增加id，score属性/private，
//以及构造器，定义say方法（返回自我介绍的信息）


//子类
public class Student extends Person {
        private String id;
        private double score;
        public Student( String name,int age,String id,double score) {
            super(name,age);
            this.id = id;
            this.score = score;
        }
        public void setScore(double score) {
            this.score = score;
        }
        public double getScore() {
            return score;
        }
        public void setId(String id) {
            this.id = id;
        }
        public String getId() {
            return id;
        }
        public String say() {
            return super.say()+" score:"+score+" id:"+id;//父类当中的Print
    }

}
